package com.itheima.homework05;
/*
2.题目二
有以下数组：
int[] arr = {55,77,0,88,22,44,33};
请编程实现：将后四个数字依次前移一位，移动后，最后一位置为 0.


 */
public class Test08 {
    public static void main(String[] args) {
        int[] arr = {55,77,0,88,22,44,33};
        System.arraycopy(arr,3,arr,2,4);
        arr[arr.length-1]=0;
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }
        System.out.println();
    }
}
